<?php
class MedicineModel extends Orm_Base{
    public $table = 'medicine';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'ml_id' => array('type' => "int(10) unsigned",'comment' => ''),
        'date' => array('type' => "varchar(10)",'comment' => '日期'),
        'status' => array('type' => "tinyint(1)",'comment' => '用药状态(0.默认、1.已用药、2.拒绝用药)'),
        'unit' => array('type' => "tinyint(2)",'comment' => '药品单位'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
        'at' => array('type' => "tinyint(1)",'comment' => '时间点(1.早上、2.上午、3.中午、4.下午、5.晚上)'),
        'sid' => array('type' => "int(11)",'comemnt' => '关联老人ID'),
        'remarks' => array('type' => "varchar(200)",'comment' => '备注'),
        'username' => array('type' => "varchar(50)",'comment' => '添加人员姓名'),
        'num' => array('type' => "int(10)",'comment' => '用量'),
        'type' => array('type' => "tinyint(1)",'comment' => '用药状态(1.正常用药、2.临睡用药)'),
        'fanqian' => array('type' => "int(11)",'comment' => '饭前饭后'),
    );
    public $pk = 'id';
}
?>
